<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LTE-UNB: PhysicalNode/PhysicalNode.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LTE-UNB
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">PhysicalNode/PhysicalNode.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_physical_node_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef _PhysicalNode_h_</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define _PhysicalNode_h_</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;itpp/itbase.h&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="_position_8h.html">Position.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="_device_8h.html">Device.h</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">using namespace </span>itpp;
<a name="l00028"></a>00028 <span class="keyword">using namespace </span>std;
<a name="l00029"></a>00029 
<a name="l00034"></a>00034 <span class="keyword">namespace </span>PhysicalNode
<a name="l00035"></a>00035 {
<a name="l00036"></a>00036 
<a name="l00041"></a><a class="code" href="class_physical_node_1_1_physical_node.html">00041</a> <span class="keyword">class </span><a class="code" href="class_physical_node_1_1_physical_node.html">PhysicalNode</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043    <span class="keyword">public</span>:
<a name="l00044"></a>00044 
<a name="l00049"></a>00049       <a class="code" href="class_physical_node_1_1_physical_node.html">PhysicalNode</a>();
<a name="l00050"></a>00050       
<a name="l00055"></a>00055       <span class="keyword">virtual</span> ~<a class="code" href="class_physical_node_1_1_physical_node.html">PhysicalNode</a>();
<a name="l00056"></a>00056       
<a name="l00061"></a>00061       <a class="code" href="class_basic_1_1_position.html">Basic::Position</a> getPosition();
<a name="l00062"></a>00062       
<a name="l00067"></a>00067       <span class="keywordtype">int</span> getId();
<a name="l00068"></a>00068       
<a name="l00073"></a>00073       <span class="keyword">virtual</span> <span class="keywordtype">double</span> getGain( <span class="keywordtype">double</span> theta );
<a name="l00074"></a>00074       
<a name="l00079"></a>00079       <span class="keywordtype">int</span> getSite();
<a name="l00080"></a>00080       
<a name="l00085"></a>00085       <span class="keywordtype">int</span> getSector();
<a name="l00086"></a>00086       
<a name="l00091"></a>00091       <span class="keywordtype">int</span> getRawBits();
<a name="l00092"></a>00092       
<a name="l00097"></a>00097       <span class="keywordtype">double</span> getEffectiveBits();
<a name="l00098"></a>00098       
<a name="l00103"></a>00103       <span class="keywordtype">void</span> setBits( <span class="keywordtype">int</span> rawBits, <span class="keywordtype">double</span> effectiveBits );
<a name="l00104"></a>00104                    
<a name="l00105"></a>00105    <span class="keyword">protected</span>:
<a name="l00106"></a>00106       
<a name="l00112"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a392c70b2bd1fc1de23fdaa331a67af9d">00112</a>       <span class="keywordtype">int</span> <a class="code" href="class_physical_node_1_1_physical_node.html#a392c70b2bd1fc1de23fdaa331a67af9d">rawBits_</a>;
<a name="l00113"></a>00113       
<a name="l00118"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a6e345a627bd97ee2b4597a5ddf227578">00118</a>       <span class="keywordtype">double</span> <a class="code" href="class_physical_node_1_1_physical_node.html#a6e345a627bd97ee2b4597a5ddf227578">effectiveBits_</a>;
<a name="l00119"></a>00119       
<a name="l00124"></a><a class="code" href="class_physical_node_1_1_physical_node.html#aeaea24f8b3a2a7733606116884691fe4">00124</a>       <a class="code" href="class_basic_1_1_position.html">Basic::Position</a> <a class="code" href="class_physical_node_1_1_physical_node.html#aeaea24f8b3a2a7733606116884691fe4">position_</a>;
<a name="l00125"></a>00125       
<a name="l00130"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a6c91f3137540417f8d62fa69ed382f37">00130</a>       <span class="keywordtype">int</span> <a class="code" href="class_physical_node_1_1_physical_node.html#a6c91f3137540417f8d62fa69ed382f37">site_</a>;
<a name="l00131"></a>00131       
<a name="l00136"></a><a class="code" href="class_physical_node_1_1_physical_node.html#af5c916378d89791b1976df01d9bead52">00136</a>       <span class="keywordtype">int</span> <a class="code" href="class_physical_node_1_1_physical_node.html#af5c916378d89791b1976df01d9bead52">sector_</a>;
<a name="l00137"></a>00137       
<a name="l00142"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a2dbd388acdf7fcbb7dfa2ca2e347a46d">00142</a>       <span class="keywordtype">int</span> <a class="code" href="class_physical_node_1_1_physical_node.html#a2dbd388acdf7fcbb7dfa2ca2e347a46d">id_</a>;
<a name="l00143"></a>00143       
<a name="l00148"></a><a class="code" href="class_physical_node_1_1_physical_node.html#aa54252970d37aec20f8249fd39c32500">00148</a>       <a class="code" href="class_physical_node_1_1_device.html">Device</a>* <a class="code" href="class_physical_node_1_1_physical_node.html#aa54252970d37aec20f8249fd39c32500">device_</a>;
<a name="l00149"></a>00149      
<a name="l00150"></a>00150    <span class="keyword">private</span>:
<a name="l00151"></a>00151    
<a name="l00152"></a>00152 
<a name="l00153"></a>00153 };
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 };
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <span class="keyword">inline</span>
<a name="l00158"></a>00158 <span class="keywordtype">void</span>
<a name="l00159"></a>00159 <a class="code" href="class_physical_node_1_1_physical_node.html#a8b049acc92221b3a453f209ddaa29c5f">PhysicalNode::</a>
<a name="l00160"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a8b049acc92221b3a453f209ddaa29c5f">00160</a> <a class="code" href="class_physical_node_1_1_physical_node.html#a8b049acc92221b3a453f209ddaa29c5f">PhysicalNode::setBits</a>( <span class="keywordtype">int</span> rawBits, <span class="keywordtype">double</span> effectiveBits )
<a name="l00161"></a>00161 {
<a name="l00162"></a>00162    rawBits_ += rawBits;
<a name="l00163"></a>00163    effectiveBits_ += effectiveBits;
<a name="l00164"></a>00164    <span class="comment">//r = true;</span>
<a name="l00165"></a>00165 };
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <span class="keyword">inline</span>
<a name="l00170"></a>00170 <span class="keywordtype">int</span>
<a name="l00171"></a>00171 <a class="code" href="class_physical_node_1_1_physical_node.html#a8c242e721f52d2dc23d272e6b9dc5292">PhysicalNode::</a>
<a name="l00172"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a8c242e721f52d2dc23d272e6b9dc5292">00172</a> <a class="code" href="class_physical_node_1_1_physical_node.html#a8c242e721f52d2dc23d272e6b9dc5292">PhysicalNode::getRawBits</a>()
<a name="l00173"></a>00173 {
<a name="l00174"></a>00174    <span class="keywordflow">return</span> rawBits_;
<a name="l00175"></a>00175 };
<a name="l00176"></a>00176 
<a name="l00177"></a>00177 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00178"></a>00178 
<a name="l00179"></a>00179 <span class="keyword">inline</span>
<a name="l00180"></a>00180 <span class="keywordtype">double</span>
<a name="l00181"></a>00181 <a class="code" href="class_physical_node_1_1_physical_node.html#a1c3135de01a16d4feee58d752f77b773">PhysicalNode::</a>
<a name="l00182"></a><a class="code" href="class_physical_node_1_1_physical_node.html#a1c3135de01a16d4feee58d752f77b773">00182</a> <a class="code" href="class_physical_node_1_1_physical_node.html#a1c3135de01a16d4feee58d752f77b773">PhysicalNode::getEffectiveBits</a>()
<a name="l00183"></a>00183 {
<a name="l00184"></a>00184    <span class="keywordflow">return</span> effectiveBits_;
<a name="l00185"></a>00185 };
<a name="l00186"></a>00186 
<a name="l00187"></a>00187 <span class="comment">//------------------------------------------------------------------------------</span>
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 <span class="preprocessor">#endif</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 25 2012 22:25:34 for LTE-UNB by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
